set -e

MY_DIR=$(basename "$0" | sed 's/.sh/.d/g')

bin=$(dirname "$0")
bin=$(
  cd "$bin"
  pwd
)

. $bin/.env

MY_IP=127.0.0.1
if ! ps -ef | grep 'metabase-.*.jar' | grep -v grep > /dev/null ; then
    MINIO_ROOT_USER=chinapex MINIO_ROOT_PASSWORD=chinapex ./linux/minio-20210116 gateway hdfs
fi
